package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 工单员工对象 tb_emp
 *
 * @author yuwei
 * @date 2024-09-02
 */
@ApiModel(description = "工单员工对象")
public class Emp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键", example = "1")
    private Long id;

    /** 员工名称 */
    @Excel(name = "员工名称")
    @ApiModelProperty(value = "员工名称", example = "张三")
    private String userName;

    /** 所属区域Id */
    @ApiModelProperty(value = "所属区域Id", example = "1")
    private Long regionId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    @ApiModelProperty(value = "区域名称", example = "华南区")
    private String regionName;

    /** 角色id */
    @Excel(name = "角色id")
    @ApiModelProperty(value = "角色id", example = "1")
    private Long roleId;

    /** 角色编号 */
    @ApiModelProperty(value = "角色编号", example = "ROLE_OPERATOR")
    private String roleCode;

    /** 角色名称 */
    @ApiModelProperty(value = "角色名称", example = "运维人员")
    private String roleName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话", example = "13800000000")
    private String mobile;

    /** 员工头像 */
    @ApiModelProperty(value = "员工头像", example = "https://example.com/avatar.jpg")
    private String image;

    /** 是否启用 */
    @ApiModelProperty(value = "是否启用（0-禁用，1-启用）", example = "1")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setRegionId(Long regionId)
    {
        this.regionId = regionId;
    }

    public Long getRegionId()
    {
        return regionId;
    }
    public void setRegionName(String regionName)
    {
        this.regionName = regionName;
    }

    public String getRegionName()
    {
        return regionName;
    }
    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    public Long getRoleId()
    {
        return roleId;
    }
    public void setRoleCode(String roleCode)
    {
        this.roleCode = roleCode;
    }

    public String getRoleCode()
    {
        return roleCode;
    }
    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public String getRoleName()
    {
        return roleName;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userName", getUserName())
                .append("regionId", getRegionId())
                .append("regionName", getRegionName())
                .append("roleId", getRoleId())
                .append("roleCode", getRoleCode())
                .append("roleName", getRoleName())
                .append("mobile", getMobile())
                .append("image", getImage())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}